const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,  // 关闭eslint检测
  transpileDependencies: true,
  devServer: {
    port: 8080
  },
  chainWebpack: config => {
    config.module
    .rule('vue')
    .use('vue-loader')
    .tap(options => {
      options.compilerOptions = {
        ...(options.compilerOptions || {}),
        isCustomElement: (tag) => /^micro-app/.test(tag),
      };
      return options
    })
  }
})
